import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  data:{},
  garage:true,
  Floor:true,
  expand:false,
}

const getters = {
  // save(state,num){
  //   state.data = num
  // }

}

const mutations = {
  save(state,unityInstance){
    state.data = unityInstance
  },
  setGarage(state,garage){
    state.garage = garage
  },
  setFloor(state,setFloor){
    state.setFloor = setFloor
  },
  setExpand(state,setExpand){
    state.expand = setExpand
  },
}

const actions = {

}

export default new Vuex.Store({
  state,
  getters,
  mutations,
  actions
})
